<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="20" :offset="2">
        <!-- 在这里写管理列表 -->
        <div>
          <el-tabs
            v-model="activeName"
            type="border-card"
            @tab-click="handleClick"
          >
            <el-tab-pane label="用户管理" name="userManage">
              <div v-if="activeName == 'userManage'">
                <UserManagePane></UserManagePane>
              </div>
            </el-tab-pane>
            <el-tab-pane label="咨询师资质信息" name="consultInfo">
              <div v-if="activeName == 'consultInfo'">
                <ConsultInfoPane></ConsultInfoPane>
              </div>
            </el-tab-pane>
            <el-tab-pane label="咨询师申请处理" name="consultApply">
              <div v-if="activeName == 'consultApply'">
                <ConsultApplyPane></ConsultApplyPane>
              </div>
            </el-tab-pane>
          </el-tabs>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import UserManagePane from "./UserManagePane/UserManagePane.vue";
import ConsultInfoPane from "./ConsultInfoPane/ConsultInfoPane.vue";
import ConsultApplyPane from "./ConsultApplyPane/ConsultApplyPane.vue";
export default {
  components: {
    UserManagePane,
    ConsultInfoPane,
    ConsultApplyPane,
  },
  data() {
    return {
      activeName: "userManage",
    };
  },
  methods: {
    //切换导航栏
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>

<style scoped>
.my-flex {
  display: flex;
  align-items: center;
}
</style>